package com.adb.util;

import android.content.Context;
import android.content.Intent;

public class EmailUtil {

	public static int sendMailByIntent(Context context) {
		String[] reciver = new String[] { "zheyiq@126.com" };
		String[] mySbuject = new String[] { "" };
		String myCc = "";
		String myTitle = "[优优数独]";
		String mybody = "大叔好：\n  关于优优数独\n  ";
		Intent myIntent = new Intent(android.content.Intent.ACTION_SEND);
		myIntent.setType("plain/text");
		myIntent.putExtra(android.content.Intent.EXTRA_EMAIL, reciver);
		myIntent.putExtra(android.content.Intent.EXTRA_CC, myCc);
		myIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, mySbuject);
		myIntent.putExtra(android.content.Intent.EXTRA_TITLE, myTitle);
		myIntent.putExtra(android.content.Intent.EXTRA_TEXT, mybody);
		context.startActivity(myIntent);
		return 1;
	}

}
